﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HKEA.CMS.Core.Models;
using HKEA.CMS.Core.BLL.Mtbl;
using System.Collections;
using HKEA.CMS.Core.BLL.Tbl;
using HKEA.CMS.Core.BLL.App;
using HKEA.CMS.Core.Utility;
using System.Text;
using System.Transactions;
namespace WebApplication.Other
{
    public partial class ApproveList : System.Web.UI.Page
    {
        app_mtblBrandBLL app_brandBLL = new app_mtblBrandBLL();
        app_tblCust_Branch app_branchBLL = new app_tblCust_Branch();
        app_tblCust_BusNatureBLL app_busnatureBLL = new app_tblCust_BusNatureBLL();
        app_tblCust_ContactPersonBLL app_cust_cpBLL = new app_tblCust_ContactPersonBLL();
        app_tblCust_MarketBLL app_cust_marketBLL = new app_tblCust_MarketBLL();
        app_tblCust_ProdCatBLL app_productCatBLL = new app_tblCust_ProdCatBLL();
        app_tblCustomerBLL app_custBLL = new app_tblCustomerBLL();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                List<int> UIDList = new List<int>();
                GetCustomerListByUIDList(UIDList);
            }
        }
        private tblCustomer GetCustomerListByUIDList(List<int> list)
        {
            return null;
        }
        private List<int> GetUIDList()
        {
            List<int> retlist = new List<int>();
            retlist.AddRange(app_brandBLL.GetCustomerUIDList());
            retlist.AddRange(app_brandBLL.GetCustomerUIDList());
            retlist.AddRange(app_busnatureBLL.GetCustomerUIDList());
            retlist.AddRange(app_cust_cpBLL.GetCustomerUIDList());
            retlist.AddRange(app_cust_marketBLL.GetCustomerUIDList());
            retlist.AddRange(app_productCatBLL.GetCustomerUIDList());
            retlist.AddRange(app_custBLL.GetCustomerUIDList());
            return  retlist.Distinct().ToList();
        }



    }
}